<?php
/*
 * @Author: your name
 * @Date: 2022-01-17 15:29:57
 * @LastEditTime: 2022-01-18 15:15:38
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \0117\jiekou.php
 */
error_reporting(E_ALL & ~E_NOTICE);
$m = $_GET['m'];  //m代表模块
$c = $_GET['c'];  //c代表控制器
$a = $_GET['a'];  //a代表方法


if (empty($m) || empty($c) || empty($a)) {
    $return = [
        'code' => 0,
        'msg' => '参数不正确',
        'data' => []
    ];
}else{
    $data = [
        ['name' => '陈锐佳', 'height' => 160, 'weight' => 108, 'sex' => '男'],
        ['name' => '江信荫', 'height' => 180, 'weight' => 120, 'sex' => '男'],
    ];
    $return = [
        'code' => 200,
        'msg' => '获取班级数据成功！',
        'data' => $data
    ];
}

echo json_encode($return);